package com.cgy.utils.thumb;

import com.cgy.utils.thumb.builder.ThumbBuilder;

import java.io.File;
import java.io.InputStream;
import java.net.URL;

/**
 * 图片处理工具类
 * @author CHTK
 */
public class ThumbHelper {


    /**
     * 初始化
     * @param strings
     * @return
     */
    public static ThumbBuilder newThumb(String... strings) {
        return new ThumbBuilder(strings);
    }
    /**
     * 初始化
     * @param files
     * @return
     */
    public static ThumbBuilder newThumb(File... files) {
        return new ThumbBuilder(files);
    }
    /**
     * 初始化
     * @param inputStreams
     * @return
     */
    public static ThumbBuilder newThumb(InputStream... inputStreams) {
        return new ThumbBuilder(inputStreams);
    }
    /**
     * 初始化
     * @param urls
     * @return
     */
    public static ThumbBuilder newThumb(URL... urls) {
        return new ThumbBuilder(urls);
    }
    
}
